package com.ghovos.usermangerpgdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


/**
 * 用户角色表
 * @author liuli
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tb_role")
@ApiModel(description = "用户角色")
public class RoleEntity extends BaseEntity{
   @TableId(type = IdType.AUTO)
   private Long id;

   private String roleName;

   @TableLogic
   private Integer isDeleted;

   @TableField(exist = false)
   private List<UserEntity> userEntityList;

   @TableField(exist = false)
   private List<MenuEntity> menuEntityList;

   @TableField(exist = false)
   private List<PermissionEntity> permissionEntityList;
}
